<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Language" content="zh-tw" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  </head>
  <body>
    
<?php

include_once '../../gmanager.class.php';
$em = gmanager::get('doctrine2');

/*
use Doctrine\ORM\EntityManager,
    Doctrine\ORM\Configuration;
*/


/*
    users header add:
        "namespace Entities;"
*/
// add

$user = new \Entities\Users;
$user->setAccount('kevin');
$user->setPassword('1234');
//$em->persist($user);
//$em->flush();

echo '<pre style="background-color:#def;color:#000;text-align:left;font-size:10px;font-family:dina,GulimChe;">';
print_r($user);
echo "</pre>\n";



/*
$tool = new \Doctrine\ORM\Tools\SchemaTool($em);
$classes = array(
  //$em->getClassMetadata('Entities\User'),
  //$em->getClassMetadata('Entities\Profile')
);
//$tool->createSchema($classes);
*/

